package com.itqf.controller;

import com.itqf.entity.Student;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/16
 * @Time: 上午11:30
 */
@RestController
public class MyController {

    @Resource
    private Student student;

    @Value("${spring.datasource.url}")
    private  String url;


    @RequestMapping("/hello")
    public  String   test(){
        System.out.println(url);
        System.out.println(url);
        return "hello"+student;
    }



}
